package com.example.service;

import com.example.entity.ClubImage;
import com.example.mapper.ClubImageMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClubImageService {
    @Resource
    private ClubImageMapper clubImageMapper;

    public List<ClubImage> selectByClubId(Integer clubId) {
        return clubImageMapper.selectByClubId(clubId);
    }

    public void add(ClubImage image) {
        clubImageMapper.insert(image);
    }

    public void deleteById(Integer id) {
        clubImageMapper.deleteById(id);
    }
} 